package com.example.demo.member.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.member.model.Ticket;
import com.example.demo.member.service.TicketService;

@RequestMapping("/ticket")
@RestController
public class TicketController {

    @Autowired
    private TicketService ticketService;

    @GetMapping("/list")
    public List<Ticket> list() {
        List<Ticket> list = ticketService.list();
        return list;
    }

    @PostMapping("/save")
    public void save() {

    }

}
